{* Smarty block element for creating Content Manager overview pages. Following variables have to be given by the including template to create the list elements: - $title: Title of the section - $list_elements: Array of elements that should be displayed in the list. Has to contain following keys: - description: Explanation of a content manager entry. - type: Defines which icon should be displayed for the entry in the list overview. Expected values are 'link', 'page' or 'code' - name: Name of the entry If $list_elements is empty a notification is shown instead. - $page_type: Defines the type of the page. Expects following strings: 'pages' or 'elements'. Is used to hide specific action icons on the 'elements' page. - $custom_id: Custom CSS ID definition. Example: {include file="get_usermod:content_manager/partial/overview_list_element.html" title = $title list_elements = $list_elements page_type = 'pages|elements'} *} {block name="admin_content_manager_partial_overview_list_element"}
{block name="admin_content_manager_partial_overview_list_element_heading"}
{block name="admin_content_manager_partial_overview_list_element_heading_title"}

### {$title}

{/block} {block name="admin_content_manager_partial_overview_list_element_heading_buttons"}
{if $page_type == 'pages'} {block name="admin_content_manager_partial_overview_list_element_heading_buttons_pages"}

- {$buttons.BUTTON_NEW_PREFIX} {$txt.PAGE_TYPE_LINK}
- {$buttons.BUTTON_NEW_PREFIX} {$txt.PAGE_TYPE_SCRIPT}

{/block} {/if} {if $page_type == 'elements'} {block name="admin_content_manager_partial_overview_list_element_heading_buttons_elements"} {if $create !== false}

- {$buttons.BUTTON_NEW_PREFIX} {$txt.PAGE_TYPE_SCRIPT}

{/if} {/block} {/if}
{/block}
{/block} {if $list_elements} {block name="admin_content_manager_partial_overview_list_element_container"}
{block name="admin_content_manager_partial_overview_list_element_list"}

{foreach item=element from=$list_elements} {block name="admin_content_manager_partial_overview_list_element_list_item"}
- {block name="admin_content_manager_partial_overview_list_element_list_item_icon"} {if $element.type == 'link'} {elseif $element.type == 'content'} {else} {/if} {/block} {block name="admin_content_manager_partial_overview_list_element_list_item_name"} {$element.name} {if isset($smarty.get.expert)}({$txt.TEXT_GROUP}: {$element.id}){/if} {if $content_status[$element.id] === 0} {$txt.BADGE_STATUS_NOT_ACTIVE} {elseif $content_status[$element.id] < count($active_languages)} {$txt.BADGE_STATUS_SOME_ACTIVE} {/if} {/block} {block name="admin_content_manager_partial_overview_list_element_list_item_actions"} {if $page_type == 'pages'} {if $element.type == 'link' || $element.type == 'content'} {block name="admin_content_manager_partial_overview_list_element_list_item_actions_pages_preview"} {/block} {/if} {block name="admin_content_manager_partial_overview_list_element_list_item_actions_pages_edit"} {/block} {if $element.deletable} {block name="admin_content_manager_partial_overview_list_element_list_item_actions_pages_delete"} {/block} {/if} {block name="admin_content_manager_partial_overview_list_element_list_item_actions_pages_sort_handle"} {/block} {else} {block name="admin_content_manager_partial_overview_list_element_list_item_actions_elements_preview"} {/block} {block name="admin_content_manager_partial_overview_list_element_list_item_actions_elements_edit"} {/block} {if $element.deletable} {block name="admin_content_manager_partial_overview_list_element_list_item_actions_elements_delete"} {/block} {/if} {/if} {/block}
{/block} {/foreach}

{/block}
{/block} {else} {block name="admin_content_manager_partial_overview_list_element_empty_list"}

- {$txt.TEXT_NO_CONTENT}

{/block} {/if}
{/block}